import axios from './axios'
import qs from 'qs'
import {apiUrl} from '@/config/config'

export const getSchoolList = (id) => {
    return new Promise((resolve,reject) => {
        axios({
            url: apiUrl + '/district-command-center/relation/edu/tree/' + id,
            method: 'get'
        }).then(res => {
            resolve(res)
        })
    })
}

export const getSchoolDetail = (params) => {
    return new Promise((resolve,reject) => {
        axios({
            url: apiUrl + '/district-command-center/dataStatistics/schoolInfo',
            method: 'get',
            params
        }).then(res => {
            resolve(res)
        })
    })
}